<template>
  <div class="main-wrapper">
    <h3 class="module-title">
      {{ title||$route.meta.title }}
    </h3>
    <slot />
  </div>
</template>
<script>
export default {
  name: 'ModuleTitle',
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>
<style lang="scss">
  .main-wrapper{
    background-color: white;
    border-radius: 10px;
    border: 1px solid rgba(233, 233, 233, 1);
    box-shadow: 0px 0px 5px rgb(0 0 0 / 5%);
    padding: 80px 30px 30px 30px;
    width: 95%;
    margin: 0 auto;
    position: relative;
    overflow-x: none;
    .module-title{
      border-radius: 10px 10px 0 0;
      position: absolute;
      top: 0px;
      left: 0px;
      font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑', sans-serif;
      font-weight: 700;
      font-style: normal;
      font-size: 16px;
      color: #666666;
      width: 100%;
      height: 60px;
      padding-left: 18px;
      display: flex;
      align-items: center;
      background-color: #F5F5F5;
      border-bottom: 1px solid rgba(233, 233, 233, 1);
    }
  }
</style>
